package com.seele.tigerwallet.async;

import com.seele.tigerwallet.ui.callback.DaoTaskListener;

import java.util.List;

/**
 * 简单的异步任务，仅仅指定返回结果的类型，不可输入参数
 */
public abstract class SimpleTask<T> extends AsyncTask<Object, Object, T> {

    protected DaoTaskListener mListener;


    public void setDaoTaskListener(DaoTaskListener listener) {
        this.mListener = listener;
    }

    @Override
    protected T doInBackground(Object... params) {
        return doInBackground();
    }

    protected abstract T doInBackground();
}
